From b2f2b3f16960bee3456f7d2a56b707215ce8cf3e Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Mon, 11 May 2020 04:47:26 +0500 Subject: [PATCH] tests: Fix testfilechooser test Don't use GtkContainer API on GtkWindow. --- tests/testfilechooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 0a9e19e2bf..0558dab5b0 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -452,7 +452,7 @@ main (int argc, char **argv) control_window = gtk_window_new (); vbbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); - gtk_container_add (GTK_CONTAINER (control_window), vbbox); + gtk_window_set_child (GTK_WINDOW (control_window), vbbox); button = gtk_button_new_with_mnemonic ("_Select all"); gtk_widget_set_sensitive (button, multiple); -- 2.30.2